#ifndef _RAMDISK_H_
#define _RAMDISK_H_

typedef struct _RAM_DISK_BLK_T_
{
	unsigned long data[128];
}RAM_DISK_BLK_T;

typedef struct _RAM_DISK_T_
{
	RAM_DISK_BLK_T *blk;
	unsigned long blk_cnt;
}RAM_DISK_T;

extern void ramdisk_init(unsigned long * buf, unsigned long size);
extern USTC_U16 ramdisk_read(unsigned long * buf, unsigned long lba, unsigned long cnt);
extern USTC_U16 ramdisk_write(unsigned long *buf, unsigned long lba, unsigned long cnt);
extern USTC_U16 ramdisk_clear(unsigned long lba, unsigned long cnt);

#endif
